/*  Neu - Feed Aggregator.
 *  Copyright (C) 2009  Joshua Montgomery
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Lesser General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser General Public License for more details. 
 *
 *  You should have received a copy of the GNU Lesser General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package com.neu.gui;

import org.apache.log4j.Logger;

/** The GUI Manager for the application.
 * 
 * @author Joshua Montgomery
 * @created May 6, 2009
 */
public class GUIManager 
{
	private static Logger logger = Logger.getLogger(GUIManager.class);
	
	private MenuBarManager menuBar; 
	
	private MainFrame frame;
	
	public GUIManager()
	{
		frame = new MainFrame(1024,768);
		logger.debug("Using default application frame size.");
		initialize();
	}
	
	public GUIManager(int width,int height)
	{
		frame = new MainFrame(width,height);
		initialize();
	}
	
	private void initialize()
	{
		menuBar = new MenuBarManager();
		
		frame.initialize();
		frame.setJMenuBar(menuBar.getMenuBar());
	}
}
